﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"  Theme="SkinFile"
    CodeFile="EquipKeptQuery.aspx.cs" Inherits="EquipKeptQuery" Title="设备保管交接历史" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <h1 id="pagetitle" class="pagetitle">
        设备保管信息查询
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div class="anistyle" id="ani">
                    正在加载数据，请耐心等待...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </h1>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <div class="condition">
                <div class="conditioninput">
                    设备编号：<asp:TextBox ID="TxtEquipID" runat="server" Width="172px"></asp:TextBox>
                </div>
                <div class="conditionbutton">
                    <asp:Button ID="BtnQuery" runat="server" Text="查询信息" Width="80px" OnClick="BtnQuery_Click" />
                    <input id="Button1" type="submit" value="导出结果" onclick="javascript:<%=BtnExport.ClientID%>.click();return false;" />&nbsp;
                </div>
            </div>
            <div runat="server" id="divResult" class="divResult">
                <asp:Label ID="OperationResult" CssClass="result" runat="server" Text=""></asp:Label>
            </div>
            <div class="InfoArea">
                <asp:Panel ID="SummaryPanel" runat="server" Width="100%">
                    <asp:GridView ID="GridView" runat="server" AutoGenerateColumns="False" Width="100%"
                        DataKeyNames="Kpt_Log_ID"  SkinID="gridviewSkin">
                        <%--<RowStyle BackColor="#EFF3FB" Height="24px" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="24px" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />--%>
                        <Columns>
                            <asp:BoundField DataField="Kpt_Log_ID" HeaderText="流水号">
                                <HeaderStyle Width="40px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Equip_ID" HeaderText="设备编号">
                                <HeaderStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Equip_Name" HeaderText="设备名称">
                                <HeaderStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Kpt_Begin" HeaderText="接收/交接时间" DataFormatString="{0:yyyy-MM-dd hh:mm:ss}">
                                <HeaderStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FullName1" HeaderText="交付人">
                                <HeaderStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FullName2" HeaderText="保管人">
                                <HeaderStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Kpt_End" HeaderText="保管终止日期" DataFormatString="{0:yyyy-MM-dd }">
                                <HeaderStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="StatusName" HtmlEncode="False" HeaderText="保管状态">
                                <HeaderStyle Width="60px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="GvDetail" runat="server" OnClick="GvDetail_Click">详细</asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="50px" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <webdiyer:AspNetPager ID="AspNetPager" runat="server" ShowCustomInfoSection="Left"
                        CustomInfoHTML="总记录数：%RecordCount%，总页数：%PageCount%，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="left"
                        CustomInfoStyle="padding-top:8px;font-weight:bold;" HorizontalAlign="right" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager_PageChanged"
                        PrevPageText="上一页" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                        TextBeforePageIndexBox="转到" CssClass="anpager" CurrentPageButtonClass="cpb">
                    </webdiyer:AspNetPager>
                </asp:Panel>
                <asp:Panel ID="DetailPanel" runat="server" Width="100%" Visible="false">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehaveborder">
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;设备编号：
                            </td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labEquip_ID" runat="server" CssClass="id"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;设备名称：
                            </td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labEquip_Name" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;状态：
                            </td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labStatusName" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;交付人：</td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labUser_Code1" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;保管人：</td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labUser_Code2" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;接收日期：</td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labKpt_Begin" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;保管终止日期：</td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labKpt_End" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;存放地点：
                            </td>
                            <td colspan="2">
                                &nbsp;
                                <asp:Label ID="labKpt_Addr" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 70px; padding-top: 6px;" valign="top">
                                &nbsp;&nbsp;备注：
                            </td>
                            <td style="padding-top: 6px;" valign="top" colspan="2">
                                &nbsp;
                                <asp:Label ID="labRem" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td class="tblfooter" colspan="3" align="right">
                                <asp:Button ID="DetailBack" runat="server" OnClick="DetailBack_Click" Text="返 回"
                                    Width="90px" /></td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:Button ID="BtnExport" runat="server" Text="导出结果" Width="90px" Style="display: none;"
        OnClick="BtnExport_Click" />
    <asp:GridView ID="GridViewExport" runat="server" AutoGenerateColumns="False" Width="100%"
        Visible="false" DataKeyNames="Kpt_Log_ID" SkinID="gridviewSkin">
       <%-- <RowStyle BackColor="#EFF3FB" Height="24px" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="24px" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />--%>
        <Columns>
            <asp:BoundField DataField="Kpt_Log_ID" HeaderText="流水号">
                <HeaderStyle Width="40px" />
            </asp:BoundField>
            <asp:BoundField DataField="Equip_ID" HeaderText="设备编号">
                <HeaderStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="Equip_Name" HeaderText="设备名称">
                <HeaderStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="Kpt_Begin" HeaderText="接收/交接时间" DataFormatString="{0:yyyy-MM-dd hh:mm:ss}">
                <HeaderStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="FullName1" HeaderText="交付人">
                <HeaderStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="FullName2" HeaderText="保管人">
                <HeaderStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="Kpt_End" HeaderText="保管终止日期" DataFormatString="{0:yyyy-MM-dd }">
                <HeaderStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="StatusName" HtmlEncode="False" HeaderText="保管状态">
                <HeaderStyle Width="60px" />
            </asp:BoundField>
        </Columns>
    </asp:GridView>
</asp:Content>
